package com.admin.requestBody;

import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.Data;
import org.springframework.format.annotation.DateTimeFormat;

import java.io.Serializable;
import java.time.LocalDateTime;

/**
 * 密钥授权
 * 时间,@RequestParam Integer terminal_key_id,String terminal_key_value
 */
@Data
public class TerminalPasswordRequest2 implements Serializable {

    public Integer terminalKeyId;//终端密钥id
    public Integer terminalId;//终端id
    @JsonFormat(shape=JsonFormat.Shape.STRING, pattern="yyyy-MM-dd HH:mm:ss")
    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    public LocalDateTime terminalKeyEndTime;//密钥结束时间
}
